Reference.htmlTEXTMOSS 5¶"«6¶"«6 Oculus 3 AppleScript Dictionary Caption and Filename Wildcards

Oculus allows you to add Wildcards to captions and to filenames to allow you to name items with the current time or date, sequence number, day of week, etc. See the Advanced Features section for details.

WildcardMeaningExample
%Ttime string2:03:06 PM
%tshort time string2:03 PM
%Ddate stringWednesday, August 7, 2000
%ddate numbers8/7/00
%Aabbreviated dateWed, Aug 7, 2000
%H24 hour14
%h12 hour2
%mminute03
%ssecond06
%0xzero led day07
%xday7
%ishort month stringAug
%Imonth stringAugust
%0Mzero led month08
%Mmonth8
%ytwo digit year00
%Yfour digit year2000
%PAM/PMPM
%pam/pmpm
%e2 letter day of weekWe
%w3 letter day of weekWed
%Wday of weekWednesday
%#sequence number2302
%QQuickCaptionHi Mom!

AppleScript Dictionary

Oculus has the following dictionary that can be used by AppleScripts.

Operations

run Sent to an application when it is double-clicked
close Close an object
close reference -- the object to close
quit Quit application
exists Verify if an object exists
exists reference -- the object in question
Result: boolean -- true if it exists, false if not
count Returns the number of elements of a particular class
count reference -- the object whose elements are to be counted
each type class -- the class of the elements to be counted
Result: integer -- the number of elements
get Get the data for an object
get reference -- the object whose data is to be returned
[as type class] -- the desired type for the data
Result: anything -- the data from the object
data size Return the size of an object in bytes
data size reference -- the object whose data size is to be returned
Result: integer -- the size of the object in bytes
delete Delete an element from an object
delete reference -- the element to delete
make Make a new element
make
new type class -- the class of the new element
[at location reference] -- the location at which to insert the element
[with properties record] -- the initial data for the properties of the element
Result: reference -- to the new object
set Set an object's data
set reference -- the object to change to anything -- the new value
move Move an object
move reference -- the object to move
[to location reference] -- the new location for the object
Result: reference -- to the object after it has been moved
takepicture Take a picture now
takepicture reference -- the window to take the picture

Classes

Class application An application program

Elements:

  • window by numeric index, by name
Properties:
  • best type type class [r/o] -- the best descriptor type
  • class type class [r/o] -- the class
  • default type type class [r/o] -- the default descriptor type
  • frontmost boolean [r/o] -- Is this the frontmost application?
  • name international text [r/o] -- the name
  • version version [r/o] -- the version of the application
Class window A window

Elements:

  • caption by numeric index, by name
  • inactiveCaption by numeric index, by name
Properties:
  • best type type class [r/o] -- the best descriptor type
  • bounds bounding rectangle -- the boundary rectangle for the window
  • class type class [r/o] -- the class
  • closable boolean [r/o] -- Does the window have a close box?
  • default type type class [r/o] -- the default descriptor type
  • floating boolean [r/o] -- Does the window float?
  • index integer -- the number of the window
  • modal boolean [r/o] -- Is the window modal?
  • name international text -- the title of the window
  • position point -- the upper left-hand coordinates of the window
  • resizable boolean [r/o] -- Is the window resizable?
  • titled boolean [r/o] -- Does the window have a title bar?
  • visible boolean -- Is the window visible?
  • zoomable boolean [r/o] -- Is the window zoomable?
  • zoomed boolean -- Is the window zoomed?
  • offline boolean -- Is the window offline?
  • quickcaption international text -- the current QuickCaption of the window
Class caption A caption

Properties:

  • name international text -- the name of the caption
  • value international text -- the contents of the caption
Class inactiveCaption A caption that appears when the camera is inactive

Properties:

  • name international text -- the name of the caption
  • value international text -- the contents of the caption
Back Forward
Back Forward

©Copyright 2000 International Web, Inc. and Poubelle Software OOAKdÞÐã?å20¶"rö¶"römkellnerReference.htmlOOAúè 2ckid €t€Projector Data